package cn.gzjp.modules.it.entity;

import java.util.List;

import org.hibernate.validator.constraints.Length;

import cn.gzjp.common.persistence.DataEntity;
import cn.gzjp.common.utils.excel.annotation.ExcelField;

/**
 * 会员Entity
 * @author zengcp
 * @version 2018-01-26
 */
public class Member extends DataEntity<Member> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 名称
	private String mobile;		// 手机号
	private Integer carAmount;		// 绑定车辆
	private Integer source;		// 来源 1微信 2支付宝 3手机
	private List<Car> carList; //我的车辆
	private Integer status;//状态  0游客,1测试员
	private String ip;
	private String address;

	private String headImg;//会员头像

	private String idcardImg1;//身份证正面
	private String idcardImg2;//身份证反面
	private Integer authstatus;//状态  0未认证,1已认证


	public Member() {
		super();
	}

	public Member(String id){
		super(id);
	}

	@Length(min=0, max=128, message="名称长度必须介于 0 和 128 之间")
	@ExcelField(title="名称", align=2, sort=1)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=11, message="手机号长度必须介于 0 和 11 之间")
	@ExcelField(title="手机号", align=2, sort=2)
	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	
	@ExcelField(title="绑定车辆", align=2, sort=3)
	public Integer getCarAmount() {
		return carAmount;
	}

	public void setCarAmount(Integer carAmount) {
		this.carAmount = carAmount;
	}
	
	@ExcelField(title="来源 1微信 2支付宝 3手机", align=2, sort=4)
	public Integer getSource() {
		return source;
	}

	public void setSource(Integer source) {
		this.source = source;
	}

	public List<Car> getCarList() {
		return carList;
	}

	public void setCarList(List<Car> carList) {
		this.carList = carList;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getHeadImg() {
		return headImg;
	}

	public void setHeadImg(String headImg) {
		this.headImg = headImg;
	}

	public String getIdcardImg1() {
		return idcardImg1;
	}

	public void setIdcardImg1(String idcardImg1) {
		this.idcardImg1 = idcardImg1;
	}

	public String getIdcardImg2() {
		return idcardImg2;
	}

	public Integer getAuthstatus() {
		return authstatus;
	}

	public void setAuthstatus(Integer authstatus) {
		this.authstatus = authstatus;
	}

	public void setIdcardImg2(String idcardImg2) {
		this.idcardImg2 = idcardImg2;
	}
}